﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYS_TZ.aspx.cs" Inherits="GPCSC.Web.SHFW.SYS_TZ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
            <style type="text/css">
        .x-grid3-row-body .expander
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander p
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
    </style>
    
    <script>
        function openNew() {
            window.location.href = "SYS_addTZ.aspx";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <ext:PageManager ID="PageManager1" runat="server" />


    <ext:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" 
    EnableCheckBoxSelect="true"  DataKeyNames="CL_TZ_SOID" EnableRowNumber="True"

    Title="我的发件列表"  Height="700px"           runat="server" >
           <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" OnClientClick="openNew()"  Text="新增信件" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDelete" Text="删除选中信件" Icon="Delete" ConfirmText="您确认删除吗?" ConfirmTarget="Self"  OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>

        <Columns>
<%--           <ext:TemplateField RenderAsRowExpander="true">
                <ItemTemplate>
                    <div class="expander">
                        <p ><strong>收件人： 
                                    <label><%# DataBinder.Eval(Container.DataItem, "SJnames")%></label>
                        </strong></p>
                         <p ><strong>附件：
                         <label>
                         <%# DataBinder.Eval(Container.DataItem, "FJUrls")%>
                         </label>
                         </strong></p>
                     
                    </div>
                </ItemTemplate>--%>
            <%--</ext:TemplateField>--%>
<%--            <ext:TemplateField Width="60px">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>--%>
           <%-- <ext:BoundField Width="300px" DataField="Title" DataFormatString="{0}" HeaderText="信件标题" />--%>

                <ext:TemplateField HeaderText="信件标题" Width="400px">
                <ItemTemplate>
                     <a href="<%# GetEditUrl(Eval("CL_TZ_SOID")) %>"><%# DataBinder.Eval(Container.DataItem, "Title")%></a>

                </ItemTemplate>
            </ext:TemplateField>
             <ext:BoundField Width="300px" DataField="creaTs" 
                HeaderText="发送时间" />
               
  <%-- <ext:TemplateField HeaderText="操作" Width="100px">
                <ItemTemplate>
                     <a href="<%# GetEditUrl(Eval("CL_TZ_SOID")) %>">查看信件内容</a>

                </ItemTemplate>
            </ext:TemplateField>--%>
        </Columns>
    </ext:Grid>
    <br />
    <br />
    <ext:Label ID="labResult" EncodeText="false" runat="server">
    </ext:Label>
    <ext:Window ID="Window1" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="false" IFrameUrl="about:blank"
        EnableMaximize="true"  Target="Self" IsModal="True" Width="800px" 
        Height="450px">
    </ext:Window>
    </form>
</body>
</html>
